package com.globalwave.eps.entity;

import javax.persistence.Column;

import com.globalwave.base.BaseSO;
import com.globalwave.base.annotations.Comparison;
import com.globalwave.common.C;


public class ElectricityProjectCriterion extends BaseSO {
    public final static String SQL_STRING = "" ; 

    @Column(name="id")
    private Long[] ids ; 

    @Column(name="project_id")
    private Long[] project_ids ;

    private String application_number;
    private Long type_;
    private String pid;
    private Long customer_id;
    private String name_;

    @Column(name="audit_on")
    @Comparison(operator=">=")
    private Long audit_on_start;

    @Column(name="audit_on")
    @Comparison(operator="<=")
    private Long audit_on_end ;
    
    @Column(name="complete_on")
    @Comparison(operator=">=")
    private Long complete_on_start ;
    
    @Column(name="complete_on")
    @Comparison(operator="<=")
    private Long complete_on_end;
    
    @Column(name="complete_on")
    @Comparison(operator=Comparison.IS_NOT_NULL)
    private Short is_completed ;
    
    @Column(name="complete_on")
    @Comparison(operator=Comparison.IS_NULL)
    private Short is_not_completed ;
    
    private Short progress_ ;
    
    public Long[] getIds() {
        return ids;
    }
    public void setIds(Long[] ids) {
        this.ids = ids;
    }
	public Long[] getProject_ids() {
		return project_ids;
	}
	public void setProject_ids(Long[] project_ids) {
		this.project_ids = project_ids;
	}
	public String getApplication_number() {
		return application_number;
	}
	public void setApplication_number(String application_number) {
		this.application_number = application_number;
	}
	public Long getType_() {
		return type_;
	}
	public void setType_(Long type_) {
		this.type_ = type_;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public Long getCustomer_id() {
		return customer_id;
	}
	public void setCustomer_id(Long customer_id) {
		this.customer_id = customer_id;
	}
	public String getName_() {
		return name_;
	}
	public void setName_(String name_) {
		this.name_ = name_;
	}
	public Long getAudit_on_start() {
		return audit_on_start;
	}
	public void setAudit_on_start(Long audit_on_start) {
		this.audit_on_start = audit_on_start;
	}
	public Long getComplete_on_end() {
		return complete_on_end;
	}
	public void setComplete_on_end(Long complete_on_end) {
		this.complete_on_end = complete_on_end;
	}
	public Long getComplete_on_start() {
		return complete_on_start;
	}
	public void setComplete_on_start(Long complete_on_start) {
		this.complete_on_start = complete_on_start;
	}
	public Long getAudit_on_end() {
		return audit_on_end;
	}
	public void setAudit_on_end(Long audit_on_end) {
		this.audit_on_end = audit_on_end;
	}
	public Short getProgress_() {
		return progress_;
	}
	public void setProgress_(Short progress_) {
		this.progress_ = progress_;
	}
	public Short getIs_completed() {
		return is_completed;
	}
	public void setIs_completed(Short is_completed) {
		if (is_completed == null) {
			this.is_not_completed = null ;
			this.is_completed = is_completed;
			return ;
		}
		
		if (C.ZERO_SHORT.equals(is_completed)) {
			this.is_not_completed = 1 ;
			this.is_completed = null ;
		} else {
			this.is_not_completed = null ;
			this.is_completed = 1 ;
		}
	}
	public Short getIs_not_completed() {
		return is_not_completed;
	}
	public void setIs_not_completed(Short is_not_completed) {
		this.is_not_completed = is_not_completed;
	}
    
    
}
